package com.eeprint.system.service.tenant;


import com.eeprint.system.domain.platform.FORM.PlatformUserUpdateFORM;
import com.eeprint.system.domain.tenant.TenantUser;
import com.eeprint.system.domain.tenant.form.TenantUserUpdate;

import java.math.BigInteger;
import java.util.List;

public interface TenantUserService {

    public TenantUser checkUser(String userPhone, String userPassword);

    /**
     * @Author newhonor
     * @Date 2020/10/19
     * @Version 1.0
     **/
    //添加员工
    public boolean addTenantUser(TenantUser tenantUser);

    //根据电话密码获得员工id
    public BigInteger findTenantUserIdByPhonePassword(TenantUser tenantUser);

    //更新员工信息
    public boolean updateTenantUser(TenantUser tenantUser);

    //根据租户id查找员工总记录数
    public int countTenantUserByTenantId(BigInteger tenantId);

    //根据租户id查询所有员工
    public List<TenantUser> findTenantUsersByTenantId(BigInteger tenantId, int page,int limit);
    //更新员工密码
    public boolean updateTenantUserPassword(TenantUserUpdate tenantUser);
    //根据id查找员工
    public TenantUser findTenantUserById(BigInteger id);



}
